x=0
for n in range(1,967):
    if n%2==1:
        x +=n
    else:
        x -=n
print("1-2+3-...+966的总和为：",x)